package com.example.shopping_web_back.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

//本文件主要定义的是每个顾客（用户）的信息
@Data
public class Customer {
    @NotNull
    private Integer id;
    private String name;
    @JsonIgnore //让springmvc把当前对象转换成json字符串时忽略password
    private String password;
    private String telephone;
    @Email
    private String email;
    private String image;
}
